<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">


        <ui:define name="title">
            <h:outputText value="#{bundle.ListRhTbFuncionarioTitle}"></h:outputText>
        </ui:define>

        <ui:define name="body">
            <h:form id="RhTbFuncionarioListForm">
                <p:panel header="#{bundle.ListRhTbFuncionarioTitle}">
                    <p:dataTable id="datalist" value="#{rhTbFuncionarioController.items}" var="item"
                                 selectionMode="single" selection="#{rhTbFuncionarioController.selected}"
                                 paginator="true"
                                 rowKey="#{item.codFunc}"
                                 rows="10"
                                 rowsPerPageTemplate="10,20,30,40,50"
                                 >

                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_codFunc}"/>
                            </f:facet>
                            <h:outputText value="#{item.codFunc}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_nomeFunc}"/>
                            </f:facet>
                            <h:outputText value="#{item.nomeFunc}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_codLotacao}"/>
                            </f:facet>
                            <h:outputText value="#{item.codLotacao}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_codAgrup}"/>
                            </f:facet>
                            <h:outputText value="#{item.codAgrup}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_codFuncao}"/>
                            </f:facet>
                            <h:outputText value="#{item.codFuncao}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_nomeGuerra}"/>
                            </f:facet>
                            <h:outputText value="#{item.nomeGuerra}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_regProfissNum}"/>
                            </f:facet>
                            <h:outputText value="#{item.regProfissNum}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_cpf}"/>
                            </f:facet>
                            <h:outputText value="#{item.cpf}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_rgNum}"/>
                            </f:facet>
                            <h:outputText value="#{item.rgNum}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_email}"/>
                            </f:facet>
                            <h:outputText value="#{item.email}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_ativoFunc}"/>
                            </f:facet>
                            <h:outputText value="#{item.ativoFunc}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_lotacao}"/>
                            </f:facet>
                            <h:outputText value="#{item.lotacao}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_agrupFunc}"/>
                            </f:facet>
                            <h:outputText value="#{item.agrupFunc}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_supervisor}"/>
                            </f:facet>
                            <h:outputText value="#{item.supervisor}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_dtDeslig}"/>
                            </f:facet>
                            <h:outputText value="#{item.dtDeslig}">
                                <f:convertDateTime pattern="dd/MM/yyyy" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_dtAdmiss}"/>
                            </f:facet>
                            <h:outputText value="#{item.dtAdmiss}">
                                <f:convertDateTime pattern="dd/MM/yyyy" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_instrucao}"/>
                            </f:facet>
                            <h:outputText value="#{item.instrucao}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListRhTbFuncionarioTitle_tipoFunc}"/>
                            </f:facet>
                            <h:outputText value="#{item.tipoFunc}"/>
                        </p:column>
                    </p:dataTable>
                </p:panel>
            </h:form>

        </ui:define>
    </ui:composition>

</html>
